package com.winteam.View;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.*;
import java.awt.Font;
import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class ReservationUi extends JFrame {

    private JPanel contentPane;
    private JTextField nametext;
    private JTextField iphonetext;
    private JTextField timetext;
    private JTextField savetimetext;


    /**
     * Create the frame.
     */
    public ReservationUi() {
        setFont(new Font("宋体", Font.BOLD, 15));
        setTitle("客服预定");

        setSize(800, 600);
        setLocationRelativeTo(null);
        contentPane = new JPanel();
        contentPane.setBackground(new Color(231,215,183));
//		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
        contentPane.setLayout(null);
        setContentPane(contentPane);

        JPanel panel = new JPanel();
        panel.setBackground(new Color(199,183,143));
        panel.setBounds(0, 0, 782, 28);
        contentPane.add(panel);

        JLabel lblNewLabel = new JLabel("基本预定信息");
        panel.add(lblNewLabel);

        JLabel lblNewLabel_1 = new JLabel("宾客姓名:");
        lblNewLabel_1.setBounds(14, 58, 72, 18);
        contentPane.add(lblNewLabel_1);

        nametext = new JTextField();
        nametext.setBounds(87, 51, 158, 28);
        contentPane.add(nametext);
        nametext.setColumns(10);

        JScrollPane scrollPane = new JScrollPane();
        scrollPane.setBounds(303, 68, 438, 285);
        contentPane.add(scrollPane);

        JLabel lblNewLabel_2 = new JLabel("本次预定的房间");
        lblNewLabel_2.setBounds(303, 41, 126, 18);
        contentPane.add(lblNewLabel_2);

        JLabel lblNewLabel_1_1 = new JLabel("宾客电话:");
        lblNewLabel_1_1.setBounds(14, 109, 72, 18);
        contentPane.add(lblNewLabel_1_1);

        iphonetext = new JTextField();
        iphonetext.setColumns(10);
        iphonetext.setBounds(87, 102, 158, 28);
        contentPane.add(iphonetext);

        JLabel lblNewLabel_1_1_1 = new JLabel("预定类型:");
        lblNewLabel_1_1_1.setBounds(14, 150, 72, 18);
        contentPane.add(lblNewLabel_1_1_1);

        JLabel lblNewLabel_1_1_1_1 = new JLabel("房间编号:");
        lblNewLabel_1_1_1_1.setBounds(14, 198, 72, 18);
        contentPane.add(lblNewLabel_1_1_1_1);

        JLabel lblNewLabel_1_1_1_2 = new JLabel("预定时间:");
        lblNewLabel_1_1_1_2.setBounds(14, 249, 72, 18);
        contentPane.add(lblNewLabel_1_1_1_2);

        timetext = new JTextField();
        timetext.setColumns(10);
        timetext.setBounds(87, 242, 158, 28);
        contentPane.add(timetext);

        JLabel lblNewLabel_1_1_1_3 = new JLabel("保留时间:");
        lblNewLabel_1_1_1_3.setBounds(14, 302, 72, 18);
        contentPane.add(lblNewLabel_1_1_1_3);

        savetimetext = new JTextField();
        savetimetext.setColumns(10);
        savetimetext.setBounds(87, 295, 158, 28);
        contentPane.add(savetimetext);

        JComboBox comboBox = new JComboBox();
        comboBox.setBounds(87, 146, 158, 24);
        contentPane.add(comboBox);

        JComboBox comboBox_1 = new JComboBox();
        comboBox_1.setBounds(87, 195, 158, 24);
        contentPane.add(comboBox_1);

        JButton btnNewButton = new JButton(" 保存",new ImageIcon(getClass().getResource("img/save.gif")));
        btnNewButton.setBounds(201, 487, 101, 42);
        contentPane.add(btnNewButton);

        JButton btnNewButton_1 = new JButton("取消",new ImageIcon(getClass().getResource("img/cancel.gif")));
        btnNewButton_1.setBounds(476, 487, 101, 42);
        btnNewButton_1.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                setVisible(false);
            }
        });
        contentPane.add(btnNewButton_1);
        JTextArea beizhutext = new JTextArea();
        beizhutext.setBounds(158, 378, 583, 82);
        contentPane.add(beizhutext);
        JLabel label = new JLabel("备  注  :");
        label.setBounds(69, 413, 72, 18);
        contentPane.add(label);

    }

    public static void main(String[] args) {
        new ReservationUi().setVisible(true);
    }
}
